package com.jeomo.mem.starter.mapper;

import com.jeomo.base.starter.mapper.IBaseMapper;
import com.jeomo.mem.starter.entity.MemberPointsActivity;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * 会员积分活动信息
 * @author:Jackpot
 * @create 2020-09-29 15:31
 * @description:
 */
public interface MemberPointsActivityMapper extends IBaseMapper<MemberPointsActivity> {

    /**
     * 获取所有已启用的积分活动规则
     * @return
     */
    @Select("select id,code,name,multi_ratio,add_ratio from member_points_activity where start_flag=1 ")
    List<MemberPointsActivity> getAllPointsActivities();


}
